package com.hjqjl.mvvmdemo;

import android.os.Bundle;

import androidx.annotation.Nullable;

import com.blankj.utilcode.util.LogUtils;
import com.trello.rxlifecycle3.components.support.RxAppCompatActivity;

public class BaseActivity extends RxAppCompatActivity {
    protected BaseActivity pActivity;
    protected String pCLassName;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        overridePendingTransition(0, 0);//进入activity的动画，防止闪屏
        pActivity = this;
        pCLassName = getClass().getSimpleName();
        LogUtils.v("onCreate:" + pCLassName);

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        LogUtils.e("onDestroy:" + pCLassName);
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(0, 0);
    }
}
